import request from "@/utils/request";
import pyRequest from "@/utils/pyapiSecond";

// 绘制拉力图
export function drawTension(data) {
    return pyRequest({
        url: "/v3/tension/draw",
        method: "post",
        data: data,
    });
}
export function getTension(data) {
    return pyRequest({
        url: "/v3/tension/data",
        method: "post",
        data: data,
    });
}
// 绘制轴力图
export function drawAxial(data) {
    return pyRequest({
        url: "/v3/axial/draw",
        method: "post",
        data: data,
    });
}
export function getAxial(data) {
    return pyRequest({
        url: "/v3/axial/data",
        method: "post",
        data: data,
    });
}

// 绘制电缆图
export function drawCable(data) {
    return pyRequest({
        url: "/v3/cable/draw",
        method: "post",
        data: data,
    });
}
export function getCable(data) {
    return pyRequest({
        url: "/v3/cable/data",
        method: "post",
        data: data,
    });
}
// 形变量
export function getStrain(data) {
    return pyRequest({
        url: "/v3/strain/data",
        method: "post",
        data: data,
    });
}
export function drawStrain(data) {
    return pyRequest({
        url: "/v3/strain/draw",
        method: "post",
        data: data,
    });
}
// 弱点
export function concludWeak(data) {
    return pyRequest({
        url: "/v3/weak/conclusion",
        method: "post",
        data: data,
    });
}
// 仪器串
export function concludCombinat(data) {
    return pyRequest({
        url: "/v3/combination/conclusion",
        method: "post",
        data: data,
    });
}
// 下入深度
export function getDescent(data) {
    return pyRequest({
        url: "/v3/descent/conclusion",
        method: "post",
        data: data,
    });
}
// 井壁稳定性(数据)
export function getStability(data) {
    return pyRequest({
        url: "/v3/stability/data",
        method: "post",
        data: data,
    })
}
// 井壁稳定性(结论)
export function concludStability(data) {
    return pyRequest({
        url: "/v3/stability/conclusion",
        method: "post",
        data: data,
    })
}

export default {
    drawTension,
    getTension,
    drawAxial,
    getAxial,
    drawCable,
    getCable,
    getStrain,
    drawStrain,
    concludWeak,
    concludCombinat,
    getDescent,
    getStability,
    concludStability
}